/**
 * 定义站点模块
 */
(function (window, angular, undefined) {

    var module = angular.module('water.entity.bcSendPlatformParam', ['water.common.AJAXService']);

    module.service('$bcSendPlatformParamService', function ($AJAXService) {

        this.getModelList = function (platformId) {
            var promise = $AJAXService.post("/BCSendPlatformParam/getModelList", {PLATFORM_ID:platformId});
            return promise;
        };
        
        this.getListForReport = function (platformId) {
            var promise = $AJAXService.post("/BCSendPlatformParam/getListForReport", {PLATFORM_ID:platformId});
            return promise;
        };
        
        this.saveModel = function (model) {
            var promise = $AJAXService.post("/BCSendPlatformParam/saveModel", model);
            return promise;
        }

        this.deleteModel = function (model) {
            var promise = $AJAXService.post("/BCSendPlatformParam/deleteModel", model);
            return promise;
        }
        
    })
}(window, angular));